package com.lafengmaker.vo.user;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author lafengmaker
 * @title: User
 * @projectName demo
 * @description: TODO
 * @email yeweijun@souche.com
 * @date 1/29/21 3:15 PM
 */
public class User {
    @NotBlank(message="用户名不能为空")
    private String userName;
    @Pattern(regexp="^[0-9]{4}-[0-9]{2}-[0-9]{2}$",message="出生日期格式不正确")
    private String birthday;


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }
}
